<?php
class Board extends AppModel{
	public $useTable = 'boards';
	public $name = 'Board';

    var $validate = array(
        'name' =>array(
                    'rule' => 'notEmpty',
                    'message' => 'vui lòng nhập tên'),
        );

	public $hasMany = array(
        'UserFollow' => array(
            'className' => 'UserFollow',
            'foreignKey' => 'board_id',
            'order' => 'UserFollow.created DESC',
            'dependent' => false
        )
    );
}
?>